//
//  TimeBarModel.cpp
//  FruitCrush
//
//  Created by gaoyu on 15/8/2.
//
//

#include "TimeBarModel.h"

static TimeBarModel *s_SharedTimeBarModel = nullptr;

TimeBarModel* TimeBarModel::getInstance()
{
    if (!s_SharedTimeBarModel)
    {
        s_SharedTimeBarModel = new (std::nothrow) TimeBarModel();
        CCASSERT(s_SharedTimeBarModel, "FATAL: Not enough memory");
        s_SharedTimeBarModel->init();
    }
    
    return s_SharedTimeBarModel;
}

TimeBarModel::TimeBarModel()
:starNum(0)
{
}

bool TimeBarModel::init(void)
{
    return true;
}

TimeBarModel::~TimeBarModel(void)
{
    
    s_SharedTimeBarModel = nullptr;
}
